<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css" />
  </head>
  <body>
    <div id="app">
      <table class="table">
        <thead>
          <tr>
            <th>姓名</th>
            <th>年龄</th>
          </tr>
        </thead>
        <tbody>
          <tr v-for="{name,age} in users">
            <td>{{name}}</td>
            <td>{{age}}</td>
          </tr>
        </tbody>
      </table>
    </div>
    <script type="module">
      import { createApp, ref, reactive, computed } from "./vue.esm-browser.js";
      import PocketBase from "./pocketbase.es.js";
      const pb = new PocketBase("http://127.0.0.1:8090");
      const app = createApp({
        setup() {
          const users = [
            {
              id: 1,
              name: "jack",
              age: 29,
            },
            {
              id: 2,
              name: "lili",
              age: 21,
            },
            {
              id: 3,
              name: "tom",
              age: 24,
            },
          ];
          return { users };
        },
      });
      app.mount("#app"); //挂载
    </script>
  </body>
</html>
